<div id="content">
  <h3 class="widgettitle"><span><?php echo $this->Html->link('Trang chủ',array('controller'=>'news','action'=>'home'));?> » <?php echo $this->Html->link($news['Catenews']['name'],array('controller'=>'news','action'=>'pages',$this->Link->seo($news['Catenews']['id'],$news['Catenews']['name'])),array('title'=>'Xem các tin thuộc mục '.$news['Catenews']['name']));?>
 </span></h3>
<?php if($news){?>
<div id="content-detail">
<h2 class="tilte"><?php echo $news['News']['title']?></h2>
<div class="postmeta-primary"> <span class="meta_date">
  Ngày đăng: <?php echo date('d/m/Y',strtotime($news['News']['ngaydang']));?></span>&nbsp;
  <!--<span class="meta_categories">
      <?php //echo $this->Html->link($news['Catenews']['name'],array('controller'=>'news','action'=>'pages',$this->Link->seo($news['Catenews']['id'],$news['Catenews']['name'])),array('title'=>'Xem các tin thuộc mục '.$news['Catenews']['name'],'rel'=>"category tag"));?>
  </span>-->
</div>
<div class="entry clearfix">
    <p align="justify" style="font-weight:bold;"><?php echo $news['News']['shortcontent']?></p>
    <div style="text-align:justify;"><?php echo $news['News']['longcontent']?></div>
</div>
<div align="right" style="font-weight:bold;">
	<?php echo $news['News']['author'];?>
</div>
<br />
<div align="right" style="margin: 5px 0;display: block;width: 100%;">
<a href="javascript: window.history.go(-1);"><img src="<?php echo $this->webroot;?>img/back.png"/>&nbsp;Trang trước</a>&nbsp;&nbsp;
<?php echo $this->Html->link(
    $this->Html->image("printer.png"). " Trang in",array('controller'=>'news','action'=>'printpage',$this->params['models']['0'],$this->Link->seo($news['News']['id'],$news['News']['title'])),array('escape'=>false,'target'=>'_blank')
);?>
&nbsp;&nbsp;
<a href="#" class="sendfriend"><img align="absmiddle" src="<?php echo $this->webroot?>img/email_go.png" />&nbsp;Gửi cho bạn bè</a>
&nbsp;&nbsp;
<a href="#main"><img src="<?php echo $this->webroot;?>img/backtop.png"/>&nbsp;Lên đầu trang</a>
</div>
<div class="clr"></div>
<h2 class="title" style="border-bottom:#CCC 1px dotted;"><span>Tin cũ hơn</span></h2>
<div style='padding: 2px 0;display: block'>
	<?php
		foreach($othernews as $onews):
	?>
	<div class='other-view-news'>
	   <a href="<?php echo $this->webroot;?>news/chitiet/<?php echo $onews['News']['id']?>"><?php echo $onews['News']['title']?></a>
        <span class="meta_date">(<?php echo date('d/m/Y',strtotime($onews['News']['ngaydang']));?>)</span>
	</div>
		<?php endforeach;?>
	<div class='clr'></div>
    
</div>
 <?php }else{?>
<div class="alert-messenger" style="padding-top: 50px;">Bài viết không tồn tại!!!</div>
<?php }?>
</div>
</div>
<?php echo $this->element('news-right');?>